package org.example.pojo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoRegisterRequest {
    // 用户名 密码 邮箱 githubUrl
    @NotBlank(message = "用户名不能为空")
    @Length(max = 20,message ="用户名长度不能超过20" )
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Length(max = 20,message ="密码长度不能超过20" )
    private String password;
    @NotBlank(message = "邮箱不能为空")
    @Length(max = 64,message ="邮箱长度不能超过64" )
    private String email;

    @Length(max = 64,message ="githubUrl长度不能超过20" )
    private String githubUrl;
}
